<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增资产')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-asset-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">资产ID：</label>
				<div class="col-sm-8">
					<input id="assetId" name="assetId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资产名称：</label>
				<div class="col-sm-8">
					<input id="assetName" name="assetName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资产类型：</label>
				<div class="col-sm-8">
					<input id="assetTypeId" name="assetTypeId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">所属组织：</label>
				<div class="col-sm-8">
					<input id="deptId" name="deptId" class="form-control" type="text">
				</div>
			</div>
			<hr/>
			<div class="form-group">
				<label class="col-sm-3 control-label">标签ID：</label>
				<div class="col-sm-8">
					<input id="tagId" name="tagId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标签类型：</label>
				<div class="col-sm-8">
					<input id="modelType" name="modelType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标签型号：</label>
				<div class="col-sm-8">
					<input id="modelNumber" name="modelNumber" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/asset"
		$("#form-asset-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-asset-add').serialize());
	        }
	    }
	</script>
</body>
</html>
